<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/plug/layui/css/layui.css">
</head>
<body>

<script src="/plug/layui/layui.js"></script>
<script>
    layui.use('table',function (){
        var table = layui.table;
        table.render({
            elem:'#test'
            ,url:'http://127.0.0.1/api/account/sel'
            ,cols:[[
                {field:'account_id',title:'序号',sort:true},
                {field:'account_no',title:'学号'},
                {field:'account_name',title:'姓名'},
                {field:'account_gender',title:'性别'},
                {field:'account_time',title:'注册时间'},
            ]]
        });
    });
</script>
</body>
</html>